// 《公共知识库》页面接口文件
import request from '@/utils/request.js';

/**查询  公共知识库接口 */
export function listPublicKnow(query){
  return request({
    url: '/system/base/list',
    method: 'get',
    params: query
  })
}

/**新增 */
export function addPublicKnow(data){
  return request({
    url: '/system/base',
    method: 'post',
    data
  })
}
/**编辑 */
export function editPublicKnow(data){
  return request({
    url: '/system/base',
    method: 'put',
    data
  })
}
/**删除 */
export function deletePublicKnow(ids){
  return request({
    url: `/system/base/${ids}`,
    method: 'delete'
  })
}
/**详情 */
export function detailPublicKnow(ids){
  return request({
    url: `/system/base/${ids}`,
    method: 'get'
  })
}
